<!DOCTYPE html>
<html>
<head>
    @include("/include/_header.html", {'title':'MES任务下发'}){}

</head>
<body>
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-body">

                    <div class="layui-form">
                        <div class="test-table-reload-btn" style="margin-bottom: 1vh;">
                            选择任务号：
                            <div class="layui-inline">
                                <input type="text" name="taskId" id="taskId"  class="layui-input" >

                            </div>
                            操作类型:
                            <div class="layui-inline">
                                <select class="layui-input" style="width:18vw" name="taskType" id="taskType">
                                    <option value=""></option>
                                    <option value="I">任务下发</option>
                                    <option value="F">任务完成</option>
                                </select>

                            </div>

                            <div class="layui-row" style="margin-top: 1vh">
                                <div class="layui-col-md3 layui-col-md-offset9">
<!--                                    <button id="btnAdd" class="layui-btn">添加任务</button>-->
                                    <button id="btnMESDistribute" class="layui-btn">确认</button>
                                    <button id="addMaterial" class="layui-btn">添加物料</button>
                                    <button id="doTask" class="layui-btn">执行</button>

                                </div>
                            </div>

                        </div>
                    </div>

                    <table class="layui-hide" id="sys-MEStask-table" lay-filter="sys-MEStask-table"></table>
                </div>
                <!-- 表格操作按钮 -->
                <script type="text/html" id="sys-task-tool">
                    <t:a cssClass="layui-btn layui-btn-xs layui-bg-blue" layEvent="edit" label="编辑"></t:a>
                    <t:a cssClass="layui-btn layui-btn-danger layui-btn-xs" layEvent="delDetailTask" label="删除"></t:a>
                </script>

                <!-- 表格操作按钮 -->
                <script type="text/html" id="online-status">
                    {{#  if(d.status == '3'){ }}
                    <button class="layui-btn-sm">已完成</button>
                    {{# } else if(d.status == '1'){ }}
                    <button class="layui-btn-sm layui-btn-disabled">未执行</button>
                    {{# } else if(d.status == '10'){ }}
                    <button class="layui-btn-sm layui-bg-orange">失败</button>
                    {{# }  else if(d.status == '99'){ }}
                    <button class="layui-btn-sm layui-bg-red">执行中</button>
                    {{# }else { }}
                    <button class="layui-btn-sm layui-bg-blue">待上料</button>
                    {{#  } }}
                </script>





            </div>
        </div>
    </div>
</div>

@include("/include/_container.html", {'js':'/assets/sys/addTask/MESTaskDistribute.js'}){}
</body>
</html>